import { axios } from '@ytu-mf/h5-common'

const request = (options) => axios(options).then(res => res.data)

let TMS_DOMAIN = 'https://s.yuantutech.com'
if (process.env.APP_ENV !== 'prod') {
  TMS_DOMAIN = 'https://uat.yuantutech.com'
}

export const getConfig = () => request({ url: `${TMS_DOMAIN}/tms/h5/mf-config.php`})